#!/bin/sh

if [ ! -d "/sys/class/pwm/pwmchip6/pwm1" ]; then
    echo 1 > /sys/class/pwm/pwmchip6/export
    echo 1000000 > /sys/class/pwm/pwmchip6/pwm1/period
    echo 1000000 > /sys/class/pwm/pwmchip6/pwm1/duty_cycle
    echo "normal" > /sys/class/pwm/pwmchip6/pwm1/polarity
    echo 1 > /sys/class/pwm/pwmchip6/pwm1/enable
fi


echo "mAgpio_out_1 Begin execution"
